query IterationIssuesSummary(
  $fullPath: ID!
  $id: ID!
  $isGroup: Boolean = true
  $weight: Boolean = false
) {
  group(fullPath: $fullPath) @include(if: $isGroup) {
    id
    openIssues: issues(
      iterationId: [$id]
      state: opened
      assigneeId: "none"
      includeSubgroups: true
    ) {
      count @skip(if: $weight)
      weight @include(if: $weight)
    }
    assignedIssues: issues(
      iterationId: [$id]
      state: opened
      assigneeId: "any"
      includeSubgroups: true
    ) {
      count @skip(if: $weight)
      weight @include(if: $weight)
    }
    closedIssues: issues(iterationId: [$id], state: closed, includeSubgroups: true) {
      count @skip(if: $weight)
      weight @include(if: $weight)
    }
  }
  project(fullPath: $fullPath) @skip(if: $isGroup) {
    id
    openIssues: issues(iterationId: [$id], state: opened, assigneeId: "none") {
      count @skip(if: $weight)
      weight @include(if: $weight)
    }
    assignedIssues: issues(iterationId: [$id], state: opened, assigneeId: "any") {
      count @skip(if: $weight)
      weight @include(if: $weight)
    }
    closedIssues: issues(iterationId: [$id], state: closed) {
      count @skip(if: $weight)
      weight @include(if: $weight)
    }
  }
}
